/*
 * @Descripttion:选择类型枚举
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-13 13:57:42
 */
export enum selectTypeEnum {
  people = "people", //人员
  depart = "depart", //部门
  post = "post", //岗位
  team = "team", //班组
  store = "store", //仓库
  region = "region", //区域
  customer = "customer", //客户
  customerType = "customerType", //客户类型
  executeRule = "executeRule", //执行规则
  position = "position", //设备位置
  product = "product", //产品管理
  processDefine = "processDefine", //工序定义
  equipType = "equipType", //设备类型
  equipFaultType = "equipFaultType", //设备故障类型
  equipUpkeepPlan = "equipUpkeepPlan", //设备保养计划
  equipSpare = "equipSpare", //备件
  equipSpareType = "equipSpareType", //备件类型
  mold = "mold", //模具
  moldType = "moldType", //模具类型
  moldFaultType = "moldFaultType", //模具故障类型
  moldUpkeepPlan = "moldUpkeepPlan", //模具保养计划
  moldSpare = "moldSpare", //模具备件
  moldSpareType = "moldSpareType", //模具备件类型
}

/**
 * @Author: xzh
 * @Descripttion: 选择对象名称
 * @Param:
 */
export let selectTypeLabel = {
  //t('page.organizeManageArr.departmentArr.department')
  [selectTypeEnum.depart]: "page.organizeManageArr.departmentArr.department",
  //t('page.organizeManageArr.postmentArr.post')
  [selectTypeEnum.post]: "page.organizeManageArr.postmentArr.post",
  //t('page.organizeManageArr.personArr.people')
  [selectTypeEnum.people]: "page.organizeManageArr.personArr.people",
  //t('page.systemManageArr.teamArr.team')
  [selectTypeEnum.team]: "page.systemManageArr.teamArr.team",
  //t('page.systemManageArr.storeManageArr.store')
  [selectTypeEnum.store]: "page.systemManageArr.storeManageArr.store",
  //t('page.systemManageArr.region')
  [selectTypeEnum.region]: "page.systemManageArr.region",
  //t('page.systemManageArr.customerType')
  [selectTypeEnum.customerType]: "page.systemManageArr.customerType",
  //t('page.systemManageArr.customer')
  [selectTypeEnum.customer]: "page.systemManageArr.customer",
  //t('page.systemManageArr.executeRule')
  [selectTypeEnum.executeRule]: "page.systemManageArr.executeRule",
  //t('page.systemManageArr.position')
  [selectTypeEnum.position]: "page.systemManageArr.position",
  //t('page.systemManageArr.product')
  [selectTypeEnum.product]: "page.systemManageArr.product",
  //t('page.systemManageArr.processDefine')
  [selectTypeEnum.processDefine]: "page.systemManageArr.processDefine",
  //t('page.equipManageArr.equipType')
  [selectTypeEnum.equipType]: "page.equipManageArr.equipType",
  //t('page.equipSpareArr.spare')
  [selectTypeEnum.equipSpare]: "page.equipSpareArr.spare",
  //t('page.equipSpareArr.spareType')
  [selectTypeEnum.equipSpareType]: "page.equipSpareArr.spareType",
  //t('page.equipRepairArr.faultType')
  [selectTypeEnum.equipFaultType]: "page.equipRepairArr.faultType",
  //t('page.equipUpkeepArr.upkeepPlan')
  [selectTypeEnum.equipUpkeepPlan]: "page.equipUpkeepArr.upkeepPlan",
  //t('page.moldManageArr.moldType')
  [selectTypeEnum.moldType]: "page.moldManageArr.moldType",
  //t('page.moldRepairArr.moldFaultType')
  [selectTypeEnum.moldFaultType]: "page.moldRepairArr.moldFaultType",
  //t('page.moldUpkeepArr.upkeepPlan')
  [selectTypeEnum.moldUpkeepPlan]: "page.moldUpkeepArr.upkeepPlan",
  //t('page.moldSpareArr.spare')
  [selectTypeEnum.moldSpare]: "page.moldSpareArr.spare",
  //t('page.moldSpareArr.spareType')
  [selectTypeEnum.moldSpareType]: "page.moldSpareArr.spareType",
};

/*
 * @Descripttion:选择列表类型枚举
 * @LastEditors: xzh
 * @LastEditTime: 2023-08-17 20:51:56
 */
export enum selectTableTypeEnum {
  equip = "equip", //设备
  equipUpkeepItem = "equipUpkeepItem", //设备保养项目
  mold = "mold", //模具
  moldUpkeepItem = "moldUpkeepItem", //模具保养项目
}

/*
 * @Descripttion:选择列表类型名称枚举
 * @LastEditors: xzh
 * @LastEditTime: 2023-08-17 20:51:56
 */
export let selectTableTypeLabel = {
  //t('page.equipManageArr.equip')
  [selectTableTypeEnum.equip]: "page.equipManageArr.equip",
  //t('page.equipUpkeepArr.upkeepItem')
  [selectTableTypeEnum.equipUpkeepItem]: "page.equipUpkeepArr.upkeepItem",
  //t('page.moldManageArr.mold')
  [selectTableTypeEnum.mold]: "page.moldManageArr.mold",
  //t('page.moldUpkeepArr.upkeepItem')
  [selectTableTypeEnum.moldUpkeepItem]: "page.moldUpkeepArr.upkeepItem",
};

/**
 * @Author: xzh
 * @Descripttion: 选择对象列表列接口
 * @Param:
 */
export interface selectTableCloumn_Inf {
  field: string; //字段
  formatField?: string; //格式化字段名
  title: string; //字段名
  cusFormat?: boolean; //自定义格式化
}
